package com.cxrj.zhsq.userManage.controller;

import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cxrj.zhsq.userManage.service.LogService;

@Controller
public class LogController {
	
	@Resource
	private LogService logService;
	
	/**
	 * 分页查询日志
	 * 
	 * @return
	 */
	@RequestMapping(value = "selectLogs", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
	@ResponseBody
	public Map<String, Object> selectRoles(HttpServletRequest request, HttpServletResponse response) {
		return logService.selectLogsPager(request, response);
	}
}
